Add corners to GtkJunctionSides, defining sides as 2 corners.
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 17 Nov 2010 01:38:31 +0000 (02:38 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Sat, 4 Dec 2010 14:39:12 +0000 (15:39 +0100)
gtk/gtkenums.h

index 63cc9ee4f3d19f2646d912af91627f182f6643b2..27f87e2681d6c234dc2fba780e2b8ef27bc57a16 100644 (file)
@@ -622,6 +622,10 @@ typedef enum {
 /**
  * GtkJunctionSides:
  * @GTK_JUNCTION_NONE: No junctions.
+ * @GTK_JUNCTION_CORNER_TOPLEFT: Element connects on the top-left corner.
+ * @GTK_JUNCTION_CORNER_TOPRIGHT: Element connects on the top-right corner.
+ * @GTK_JUNCTION_CORNER_BOTTOMLEFT: Element connects on the bottom-left corner.
+ * @GTK_JUNCTION_CORNER_BOTTOMRIGHT: Element connects on the bottom-right corner.
  * @GTK_JUNCTION_TOP: Element connects on the top side.
  * @GTK_JUNCTION_BOTTOM: Element connects on the bottom side.
  * @GTK_JUNCTION_LEFT: Element connects on the left side.
@@ -631,10 +635,14 @@ typedef enum {
  */
 typedef enum {
   GTK_JUNCTION_NONE   = 0,
-  GTK_JUNCTION_TOP    = 1 << 0,
-  GTK_JUNCTION_BOTTOM = 1 << 1,
-  GTK_JUNCTION_LEFT   = 1 << 2,
-  GTK_JUNCTION_RIGHT  = 1 << 3
+  GTK_JUNCTION_CORNER_TOPLEFT = 1 << 0,
+  GTK_JUNCTION_CORNER_TOPRIGHT = 1 << 1,
+  GTK_JUNCTION_CORNER_BOTTOMLEFT = 1 << 2,
+  GTK_JUNCTION_CORNER_BOTTOMRIGHT = 1 << 3,
+  GTK_JUNCTION_TOP    = (GTK_JUNCTION_CORNER_TOPLEFT | GTK_JUNCTION_CORNER_TOPRIGHT),
+  GTK_JUNCTION_BOTTOM = (GTK_JUNCTION_CORNER_BOTTOMLEFT | GTK_JUNCTION_CORNER_BOTTOMRIGHT),
+  GTK_JUNCTION_LEFT   = (GTK_JUNCTION_CORNER_TOPLEFT | GTK_JUNCTION_CORNER_BOTTOMLEFT),
+  GTK_JUNCTION_RIGHT  = (GTK_JUNCTION_CORNER_TOPRIGHT | GTK_JUNCTION_CORNER_BOTTOMRIGHT)
 } GtkJunctionSides;
 
 typedef enum {